<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>盒子模型简单应用</title>
  <style>
    *.clear {
      clear:both;
    }
    #nav li {
      list-style: none;
    }
    li.l1 {
      float:left;
      border:1px solid #aaa;
      padding:10px 20px;
      margin:0px 10px;
    }
  </style>
</head>
<body>
  <ul id="nav">
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <li class="l1">测试链接</li>
    <div class="clear"></div>
  </ul>
</body>
</html>